import { createApp } from 'vue'
import App from './App.vue'


import { createMemoryHistory, createRouter } from 'vue-router'

import HomeView from './views/HomeView.vue'
import AboutView from './views/AboutView.vue'
import SubView from './views/SubView.vue'

const routes = [
  { 
    path: '/home', 
    component: HomeView,
    children: [{
        path: 'subview', component: SubView ,
    }]
  },
  { path: '/about', component: AboutView },
]

const router = createRouter({
  history: createMemoryHistory(),
  routes,
})



import './api/mock'
createApp(App).use(router).mount('#app')
